{
	"info": {
		"_postman_id": "f6573aec-0511-4555-8d93-db8d0f6007ae",
		"name": "UCP (Unified Customer Profile) APIs Collection",
		"description": "RCDP Unified customer profile (UCP) APIs collections\n\nUnder \"Variables\" section, you must define below based on the access details provided by RCDP CSM and then start using it.\n\nB2B_URL  \nTENANT_HASH  \nOAUTH_KEY",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "17781451"
	},
	"item": [
		{
			"name": "Token Generation",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"let response = pm.response.json();\r",
							"pm.globals.set(\"ACCESS_TOKEN\", response.token);"
						],
						"type": "text/javascript",
						"packages": {},
						"requests": {}
					}
				}
			],
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "oauth_key_secret",
						"value": "{{OAUTH_KEY}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"resource\":[\"basic\",\"segments\",\"searchSegments\",\"isCustomerInSegment\",\"campaigns\",\"searchCampaigns\",\"recommendedProducts\",\"userActivity\",\"productPurchaseTrends\",\"productPurchased\",\"affinity\",\"userAttributes\",\"gcr\",\"optIn\",\"loyalty\"],\r\n\"validity\":300\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/secureApi/token/profile/create",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"secureApi",
						"token",
						"profile",
						"create"
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer Basic",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					},
					{
						"key": "gcrId",
						"value": "100",
						"type": "text"
					}
				],
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/profile/b2b/basic",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"profile",
						"b2b",
						"basic"
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer's Segment",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					},
					{
						"key": "gcrId",
						"value": "100",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"pageSize\":100 \r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/profile/b2b/segments",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"profile",
						"b2b",
						"segments"
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer Search Segment by name",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					},
					{
						"key": "gcrid",
						"value": "100",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"pageSize\":100 \r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/profile/b2b/searchSegments?segmentName=Test",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"profile",
						"b2b",
						"searchSegments"
					],
					"query": [
						{
							"key": "segmentName",
							"value": "Test"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer in Segment search",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					},
					{
						"key": "gcrId",
						"value": "100",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"pageSize\":100 \r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/profile/b2b/isCustomerInSegment?segmentId=6353",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"profile",
						"b2b",
						"isCustomerInSegment"
					],
					"query": [
						{
							"key": "segmentId",
							"value": "6353"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer Campaigns",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					},
					{
						"key": "gcrId",
						"value": "100",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"pageSize\":100 \r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/profile/b2b/campaigns",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"profile",
						"b2b",
						"campaigns"
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer Search Campaign by Name",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					},
					{
						"key": "gcrId",
						"value": "100",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"pageSize\":100 \r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/profile/b2b/searchCampaigns?campaignName=Test",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"profile",
						"b2b",
						"searchCampaigns"
					],
					"query": [
						{
							"key": "campaignName",
							"value": "Test"
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer Product Recommendation",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					},
					{
						"key": "gcrId",
						"value": "100",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"pageSize\":100 \r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/profile/b2b/recommendedProducts",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"profile",
						"b2b",
						"recommendedProducts"
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer Acitivity",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					},
					{
						"key": "gcrId",
						"value": "100",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"pageSize\":100 \r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/profile/b2b/userActivity",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"profile",
						"b2b",
						"userActivity"
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer Product Purchased Trend",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					},
					{
						"key": "gcrId",
						"value": "100",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"pageSize\":100 \r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/profile/b2b/productPurchaseTrends",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"profile",
						"b2b",
						"productPurchaseTrends"
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer Product Purchased",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					},
					{
						"key": "gcrId",
						"value": "100",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"pageSize\":100 \r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/profile/b2b/productPurchased",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"profile",
						"b2b",
						"productPurchased"
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer Affinity",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					},
					{
						"key": "gcrId",
						"value": "100",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"pageSize\":100 \r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/profile/b2b/affinity",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"profile",
						"b2b",
						"affinity"
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer Attributes",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					},
					{
						"key": "gcrId",
						"value": "100",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"pageSize\":100 \r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/profile/b2b/userAttributes",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"profile",
						"b2b",
						"userAttributes"
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer OptIn",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					},
					{
						"key": "gcrId",
						"value": "100",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"pageSize\":100 \r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/profile/b2b/optIn",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"profile",
						"b2b",
						"optIn"
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer GCR",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"email_address\":\"abc@test.com\"\r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/profile/b2b/gcr",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"profile",
						"b2b",
						"gcr"
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer loyalty",
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [
					{
						"key": "XSRF-TOKEN",
						"value": "97f5faf5-e03c-4b8c-abb7-3827f8f39ebe",
						"type": "default",
						"disabled": true
					},
					{
						"key": "Cookie",
						"value": "JSESSIONID=3EB0FA27174CC1D8EDBC604967569D50",
						"type": "default",
						"disabled": true
					},
					{
						"key": "access_token",
						"value": "{{ACCESS_TOKEN}}",
						"type": "default"
					},
					{
						"key": "tenant_hash",
						"value": "{{TENANT_HASH}}",
						"type": "text"
					},
					{
						"key": "gcrId",
						"value": "100",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\r\n\"pageSize\":100 \r\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://{{B2B_URL}}/api/v1/profile/b2b/loyalty",
					"protocol": "https",
					"host": [
						"{{B2B_URL}}"
					],
					"path": [
						"api",
						"v1",
						"profile",
						"b2b",
						"loyalty"
					]
				}
			},
			"response": []
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"requests": {},
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"requests": {},
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "B2B_URL",
			"value": ""
		},
		{
			"key": "TENANT_HASH",
			"value": ""
		},
		{
			"key": "OAUTH_KEY",
			"value": ""
		}
	]
}